package com.wuchao.spring.test;

import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @Author wuchao66
 * @Date 2023/9/27 15:26
 * @PackageName:com.wuchao.spring.test
 * @ClassName: T
 * @Description: TODO
 * @Param
 * @Version 1.0
 */
public class T {
    public static void main(String[] args) {
        List<Integer> list=new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);
        //lamb
        List<Integer> collect = list.stream().map(xjj -> {
            xjj++;
            return xjj;
        }).collect(Collectors.toList());
        collect.forEach(System.out::println);
        collect.forEach(xjj-> System.out.println(xjj));

    }
}
